Skip to content

test(faraday): instrumentation test coverage#2184

Open
aabhinavvvvvvv wants to merge 4 commits intoopen-telemetry:mainfrom
aabhinavvvvvvv:fix/faraday-instrumentation-test-coverage
Open

test(faraday): instrumentation test coverage#2184
aabhinavvvvvvv wants to merge 4 commits intoopen-telemetry:mainfrom
aabhinavvvvvvv:fix/faraday-instrumentation-test-coverage

Conversation

@aabhinavvvvvvv
Copy link
Copy Markdown

Summary

Improves test coverage for the faraday instrumentation to meet the 85% SimpleCov threshold (fixes #2156).

  • Rewrites faraday_test.rb to run under the stable appraisal with tests covering name, version, present?, compatible?, and #install on the instrumentation class
  • Adds enable_internal_instrumentation: true test to stable/tracer_middleware_test.rb, old/tracer_middleware_test.rb, and dup/tracer_middleware_test.rb to cover the previously untested else branch in each middleware's call method

Comment thread instrumentation/faraday/test/opentelemetry/instrumentation/faraday_test.rb Outdated
Comment thread instrumentation/faraday/test/opentelemetry/instrumentation/faraday_test.rb Outdated
@aabhinavvvvvvv aabhinavvvvvvv force-pushed the fix/faraday-instrumentation-test-coverage branch from 7f0377a to 06e96f8 Compare April 23, 2026 13:50
@github-actions github-actions Bot removed the ci label Apr 23, 2026
@aabhinavvvvvvv aabhinavvvvvvv force-pushed the fix/faraday-instrumentation-test-coverage branch from 06e96f8 to 47584b9 Compare April 23, 2026 13:53
@aabhinavvvvvvv aabhinavvvvvvv force-pushed the fix/faraday-instrumentation-test-coverage branch from 47584b9 to b1f9cf9 Compare April 23, 2026 13:57
@github-actions github-actions Bot added the ci label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve faraday instrumentation test coverage

2 participants